package com.dotflat.docs.po;

import com.dotflat.rest.PO.AreableObjectBasePO;
import com.dotflat.rest.utils.LikeableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("文档对象")
public class DocumentPO extends AreableObjectBasePO {

	@ApiModelProperty(value = "目录id")
	private String dirId;

	@ApiModelProperty(value = "封面")
	private String cover;

	@ApiModelProperty(value = "资源URL")
	private String resURL;

	@ApiModelProperty("目录类型，冗余")
	private Integer dirType;

	@ApiModelProperty(value = "资源类型,前端自行定义(图片,食谱,文档,ppt等),服务器不关心")
	private String resType;

	@LikeableField
	@ApiModelProperty(value = "标题,查询时可以模糊匹配")
	private String title;

	@ApiModelProperty(value = "描述")
	private String description;

	@ApiModelProperty(value = "可以用来存储一段JSON, 服务器不关心")
	private String attachJSON;

	@ApiModelProperty(value = "上传老师名字", hidden = true)
    @JsonIgnore
	private String staffName;

	@ApiModelProperty(value = "年级或其他可以分类的字符串")
	private String level;
}
